package com.anytrek.cloudopenfeign.config;

import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ ClassName FeignConfig
 * @ Author Alex2
 * @ Date 2025/8/23 12:21
 **/
@Configuration
public class FeignConfig {

    @Bean
    public Retryer feignRetryer() {
        // period: 100ms, maxPeriod: 1000ms, maxAttempts: 3
        return new Retryer.Default(100, 1000, 3);
    }


    
}